{% extends "base.html" %} 

{% block head-title %}{{ algorithm.algorithm_name }}{% endblock %}

{% block title %}{{ algorithm.algorithm_name }}<a href="/static/pdf/{{ algorithm.algorithm_name }}.pdf" target="_blank" title="点击查看学习材料" class="uk-button uk-button-success uk-button-small">学习材料</a>{% endblock %} 

{% block content %}
<script src="/static/js/deep_learning/1.js"></script>
<form action="/deep_learning/select_data_source/" method="post" enctype="multipart/form-data"
	class="uk-form" id="form1" onsubmit="return onForm1Submit();">
	{%csrf_token%}
	<input type="hidden" name="instance_id" value="{{ algorithm.instance_id }}"/>
	<fieldset>
		{% if algorithm.algorithm_name == "深度学习-LSTM" %}
			<legend>数据来源(1/3)</legend>
		{% elif  algorithm.algorithm_name == "深度学习-图像识别" %}
			<legend>数据来源(1/1)</legend>
		{% else %}
			<legend>数据来源(1/4)</legend>
		{% endif %}
		<div class="uk-form-row">
			<select name="data_source_name" id="data_source_name">
				{% ifequal algorithm.algorithm_name "深度学习-二分类" %}
				<option value="糖尿病发病情况数据集.xlsx">糖尿病发病情况数据集</option>
				{% endifequal %}
				{% ifequal algorithm.algorithm_name "深度学习-多分类" %}
				<option value="iris.xlsx">鸢尾花数据集</option>
				{% endifequal %}
				{% ifequal algorithm.algorithm_name "深度学习-回归" %}
				<option value="波士顿房价预测.xlsx">波士顿房价预测</option>
				{% endifequal %}
				{% ifequal algorithm.algorithm_name "深度学习-LSTM" %}
				<option value="国际航空乘客月数量.xlsx">国际航空乘客月数量</option>
				{% endifequal %}
				{% ifequal algorithm.algorithm_name "深度学习-图像识别" %}
				<option value="人像.jpg">人像</option>
				<option value="电脑.jpg">电脑</option>
				<option value="动物.jpg">动物</option>
				<option value="植物.jpg">植物</option>
				<option value="手机.jpg">手机</option>
				<option value="生活用品.jpg">生活用品</option>
				<option value="交通工具.jpg">交通工具</option>
				{% endifequal %}
				<option value="manual_upload">手工上传文件</option>
			</select>
		</div>
		<div class="uk-form-row" id="div_upload_file" style="display:none;">
			<div class="uk-form-file">
				{% if algorithm.algorithm_name == "深度学习-图像识别" %}
				<button class="uk-button">选择图像文件</button>
				{% else %}
				<button class="uk-button">选择Excel文件</button>
				{% endif %}
    			<input type="file" name="upload_file" id="upload_file">
    			<span id="span_file_name" style="color:#009E47"></span>
			</div>
		</div>
	</fieldset>
	<div class="uk-form-row" style="margin-top: 5px;">
		<input class="uk-button uk-button-primary" type="submit" value="下一步"
			style="float: right;">
	</div>
</form>
{% endblock %}
